// SpeedOrderDoc.cpp : implementation of the CSpeedOrderDoc class
//

#include "stdafx.h"
#include "SpeedOrder.h"

#include "SpeedOrderDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSpeedOrderDoc

IMPLEMENT_DYNCREATE(CSpeedOrderDoc, CDocument)

BEGIN_MESSAGE_MAP(CSpeedOrderDoc, CDocument)
	//{{AFX_MSG_MAP(CSpeedOrderDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(CSpeedOrderDoc, CDocument)
	//{{AFX_DISPATCH_MAP(CSpeedOrderDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//      DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// Note: we add support for IID_ISpeedOrder to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {56350BC9-2835-421F-9DB5-A1C7625DF24A}
static const IID IID_ISpeedOrder =
{ 0x56350bc9, 0x2835, 0x421f, { 0x9d, 0xb5, 0xa1, 0xc7, 0x62, 0x5d, 0xf2, 0x4a } };

BEGIN_INTERFACE_MAP(CSpeedOrderDoc, CDocument)
	INTERFACE_PART(CSpeedOrderDoc, IID_ISpeedOrder, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSpeedOrderDoc construction/destruction

CSpeedOrderDoc::CSpeedOrderDoc()
{
	// TODO: add one-time construction code here

	EnableAutomation();

	AfxOleLockApp();
}

CSpeedOrderDoc::~CSpeedOrderDoc()
{
	AfxOleUnlockApp();
}

BOOL CSpeedOrderDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CSpeedOrderDoc serialization

void CSpeedOrderDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CSpeedOrderDoc diagnostics

#ifdef _DEBUG
void CSpeedOrderDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CSpeedOrderDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CSpeedOrderDoc commands
